package com.styles.codingstyle.exception;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Package com.styles.codingstyle.exception
 * @Description: 自定义非法参数异常
 * @Author 陈建
 * @Create: 2018-05-30 17:43
 * @Version 1.0
 * @Update: message
 */
@Getter
@Setter
@ToString
public class MyIllegalArgumentException extends RuntimeException {
    private Integer code;

    public MyIllegalArgumentException(String message, Integer code) {
        super(message);
        this.code = code;
    }
}
